import java.util.Scanner;
public class long
{
	public static void main (String[] args)
	{
		Scanner in = new Scanner(System.in)
			double math = in.nextInt();
		double mathlong = 4 * math;
		double power = 2;
		double mathsquare = math.pow( power);
		System.out.println (mathlong;)
			System.out.println (mathsquare);
	}
}
